package com.example.userdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.MongoId;

import javax.naming.InsufficientResourcesException;

/**
 * <p>
 * 
 * </p>
 *
 * @author liqinglin
 * @since 2023年07月24日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("student")
@ApiModel(value = "Student对象", description = "")
@Data
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @MongoId
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("age")
    private Integer age;

    @TableField("description")
    private String description;

    @TableField("sex")
    private Integer sex;

//    @TableField("count")
//    private Integer count;


}
